<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI生成的阅读理解</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/bootstrap-icons.css">
    <script src="assets/js/jquery-3.6.0.min.js"></script>
    <style>
        /* 复用阅读页面的基础样式 */
        body {
            background-color: #f0f9f9;
        }
        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        .reading-tools {
            background: white;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        .reading-content {
            background: white;
            padding: 20px;
            line-height: 1.8;
        }
        
        /* AI生成特定样式 */
        .ai-badge {
            background: linear-gradient(45deg, #40e0d0, #3bcdc0);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .target-vocab {
            background: rgba(64, 224, 208, 0.1);
            border-bottom: 2px solid #40e0d0;
            padding: 0 2px;
        }
        .vocab-list {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
        }
        .vocab-item {
            display: inline-block;
            background: white;
            padding: 4px 12px;
            border-radius: 15px;
            margin: 4px;
            font-size: 0.9rem;
            border: 1px solid #eee;
        }
        .regenerate-btn {
            background: #40e0d0;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .regenerate-btn:hover {
            background: #3bcdc0;
        }
        
        /* 添加问题部分的样式 */
        .question-section {
            background: white;
            padding: 20px;
            margin-bottom: 80px;
        }
        .question {
            margin-bottom: 25px;
        }
        .question p {
            font-weight: 500;
            color: #333;
            margin-bottom: 15px;
        }
        .option {
            display: block;
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 10px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            color: #333;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .option:hover, .option:focus, .option:active {
            background: #e9ecef;
            color: #333;
            transform: translateX(5px);
            text-decoration: none;
        }
        .option.selected {
            background: #40e0d0;
            color: white;
            border-color: #40e0d0;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <div class="header d-flex align-items-center">
        <a href="ai-exercise.html" class="text-dark"><i class="bi bi-chevron-left fs-4"></i></a>
        <h5 class="mb-0 mx-auto">AI生成的阅读理解</h5>
        <span class="ai-badge">
            <i class="bi bi-robot"></i> AI生成
        </span>
    </div>

    <!-- 目标词汇展�� -->
    <div class="vocab-list">
        <div class="mb-2">使用的目标词汇：</div>
        <span class="vocab-item">deteriorate</span>
        <span class="vocab-item">resilient</span>
        <span class="vocab-item">sustainable</span>
        <span class="vocab-item">implement</span>
    </div>

    <!-- 阅读内容 -->
    <div class="reading-content">
        <div class="paragraph">
            <div class="english-text">
                As cities continue to grow, urban planners face increasing challenges to create <span class="target-vocab">sustainable</span> environments. The quality of infrastructure tends to <span class="target-vocab">deteriorate</span> over time, requiring constant maintenance and upgrades. However, modern cities have proven to be remarkably <span class="target-vocab">resilient</span>, adapting to various challenges through innovative solutions.
            </div>
        </div>
        
        <div class="paragraph">
            <div class="english-text">
                To address these challenges, city governments must <span class="target-vocab">implement</span> comprehensive development strategies. These strategies often involve smart technology integration and green infrastructure development, ensuring long-term sustainability while maintaining economic growth.
            </div>
        </div>
    </div>

    <!-- 题目部分 -->
    <div class="question-section">
        <div class="question">
            <p><strong>1. What is the main challenge faced by urban planners according to the passage?</strong></p>
            <a href="#" class="option">
                A. Creating sustainable urban environments
            </a>
            <a href="#" class="option">
                B. Managing population growth
            </a>
            <a href="#" class="option">
                C. Implementing new technologies
            </a>
            <a href="#" class="option">
                D. Maintaining economic growth
            </a>
        </div>

        <div class="question">
            <p><strong>2. How do modern cities demonstrate resilience?</strong></p>
            <a href="#" class="option">
                A. By preventing infrastructure deterioration
            </a>
            <a href="#" class="option">
                B. By adapting through innovative solutions
            </a>
            <a href="#" class="option">
                C. By increasing population capacity
            </a>
            <a href="#" class="option">
                D. By focusing on economic growth
            </a>
        </div>
    </div>

    <!-- 底部工具栏 -->
    <div class="bottom-tools position-fixed bottom-0 w-100 bg-white p-3">
        <div class="d-flex justify-content-between align-items-center">
            <button class="regenerate-btn">
                <i class="bi bi-arrow-clockwise"></i>
                重新生成
            </button>
            <button class="btn btn-primary">查看答案解析</button>
        </div>
    </div>

    <script>
        $(document).ready(function() {
            // 重新生成按钮点击事件
            $('.regenerate-btn').click(function() {
                // 显示加载动画
                $(this).html('<i class="bi bi-arrow-clockwise"></i> 生成中...');
                $(this).prop('disabled', true);
                
                // 模拟生成过程
                setTimeout(() => {
                    location.reload();
                }, 1500);
            });

            // 查看答案解析按钮点击事件
            $('.btn-primary').click(function() {
                window.location.href = 'ai-reading-analysis.html';
            });

            // 选项点击事件
            $('.option').click(function(e) {
                e.preventDefault();
                // 移除同一问题中其他选项的选中状态
                $(this).closest('.question').find('.option').removeClass('selected');
                // 添加当前选项的选中状态
                $(this).addClass('selected');
            });
        });
    </script>
</body>
</html>